<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<?php if(!isset($metatag_page)){$metatag_page='';}?>
<?php if(!isset($title_page)){$title_page='';}?>
<meta name="description" content="<?php echo $metatag_page;?>" />
<title><?php echo $title_page; ?></title>
<?php
	echo $this -> Html -> css(array('jquery.mobile-1.1.0.min.css', 'my.css'));
	echo $this -> Html -> script(array('jquery.js', 'jquery.mobile-1.1.0.min.js', 'my.js'));
	if (isset($activeButton)) {
		if ($activeButton == 'home') {
			$activeHome = 'mobile_active_button';
			$activeCustomer = '';
			$activeNumber = '';
		} else {
			$activeHome = '';
			$activeCustomer = '';
			$activeNumber = 'mobile_active_button';
		}
	} else {
		$activeHome = '';
		$activeCustomer = 'mobile_active_button';
		$activeNumber = '';
	}
?>
</head>
<script type="text/javascript">
var pathRoot = '<?php echo $this -> Html -> url('/',true); ?>';
</script>
<body>
<div data-role="page">
<div data-theme="a" data-role="header">
	<h1><?php echo $title_for_layout;?></h1>
</div>
<div data-role="content" style="padding: 15px"><?php echo $this -> Session -> flash(); ?>
<?php echo $this -> fetch('content'); ?></div>
<div data-role="tabbar" data-iconpos="top" data-theme="b">
<ul>
	<li>
	<?php
		if (isset($flgAction) == false) {
			echo $this -> Html -> link('　Home　', array('controller' => 'mobile', 'action' => 'index'), array('class' => $activeHome, 'data-them' => '', 'data-icon' => 'home', 'rel' => 'external'));
		}
	?>
	</li>
	<li>
	<?php
		if (isset($flgAction) == false) {
			echo $this -> Html -> link('予約する', array('controller' => 'mobile', 'action' => 'reserve'), array('class' => $activeCustomer, 'data-them' => '', 'data-icon' => 'star', 'rel' => 'external'));
		}
	?>
	</li>
	<li>
	<?php
		if (isset($flgAction) == false) {
			echo $this -> Html -> link('只今の順番確認', array('controller' => 'mobile', 'action' => 'confirm_book'), array('class' => $activeNumber, 'data-them' => '', 'data-icon' => 'info', 'rel' => 'external'));
		}
	?>
	</li>
</ul>
</div>
</div>
</body>
</html>
